package com.xu.cloud.shorturl;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 短地址服务Application
 *
 * @author xuguan
 * @since 2024/3/5
 */
@MapperScan(basePackages = {
        "com.xu.cloud.shorturl.pojo.mapper",
        "com.xu.cloud.common.pojo.mapper"})
@SpringBootApplication
@EnableAspectJAutoProxy(proxyTargetClass = true)
@EnableAsync
public class ShortUrlApplication {
    public static void main(String[] args) {
        SpringApplication.run(ShortUrlApplication.class, args);
    }
}
